{template 'common/header'}

<div class="main">
    <form action="" method="post" class="form-horizontal form" id="setting-form">
        <div class="panel panel-default">
            <div class="panel-heading">基本配置</div>
            <div class="panel-body">
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label">SEO标题</label>
                    <div class="col-sm-8">
                        <input type="text" name="dat[title]" class="form-control" value="{$settings['title']}" />
                    </div>
                    <span class="help-block">模块应用的标题</span>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label">背景图</label>
                    <div class="col-sm-8">
                        {php echo tpl_form_field_image('dat[bgimage]', $settings['bgimage']);}
                        <span class="help-block">游戏开始的时候的背景图，不填为默认</span>
                    </div>

                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label">排行榜顶部图</label>
                    <div class="col-sm-8">
                        {php echo tpl_form_field_image('dat[rankimage]', $settings['rankimage']);}
                        <span class="help-block">排行榜顶部展示的图片推荐720*176大小，不填为默认</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label">强制关注</label>
                    <div class="col-sm-8">
                        <input type="text" name="dat[isgz]" class="form-control" value="{$settings['isgz']}" />
                        <span class="help-block">是否开始强制关注才可以使用，填写1为开启，0为不启用</span>
                    </div>
                    
                </div>
                <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label">公众号二维码</label>
                        <div class="col-sm-8">
                            {php echo tpl_form_field_image('dat[ewm]', $settings['ewm']);}
                            <span class="help-block">开启强制关注后显示公众号二维码</span>
                        </div>
    
                    </div>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading">难度设置</div>
            <div class="panel-body">
                <p>配置说明：hp为血量，sd为速度，df为消灭后的得分，如果想表示速度为随机，可以使用1||4，表示1-4之间随机</p>
                <p>下面填空中都有默认配置，复制进去即可，仔细检查不要有空的行</p>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label">小校长配置</label>
                    <div class="col-sm-8">
                        <textarea class="form-control" rows="3" name="dat[xxzpz]">{$settings['xxzpz']}</textarea>
                    </div>
                    <span class="help-block">
                        hp:1<br> sd:1||3
                        <br> df:1
                        <br>
                    </span>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label">组合校长配置</label>
                    <div class="col-sm-8">
                        <textarea class="form-control" rows="3" name="dat[zxzpz]">{$settings['zxzpz']}</textarea>
                    </div>
                    <span class="help-block">
                        hp:5<br> sd:1||2
                        <br> df:5
                        <br>
                    </span>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label">大校长配置</label>
                    <div class="col-sm-8">
                        <textarea class="form-control" rows="3" name="dat[dxzpz]">{$settings['dxzpz']}</textarea>
                    </div>
                    <span class="help-block">
                        hp:20<br> sd:1
                        <br> df:20
                        <br>
                    </span>
                </div>
            </div>
        </div>
        <div class="form-group col-sm-12">
            <input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />
            <input type="hidden" name="token" value="{$_W['token']}" />
        </div>
    </form>
</div>
{template 'common/footer'}